﻿using OperationPlugins;
using OperationPlugins.Validators;
using TimeProject.Engine;
using TimeProject.WebSite.ViewModels;

namespace TimeProject.Validators.ViewModels.Level2
{
    [ValidatorOf(ValidationLevel.Level2, typeof(DeleteAccountViewModel))]
    [OperationFilter(TimeProjectOperations.DeleteAccount)]
    public class DeleteAccountViewModelValidator : TimeProjectValidatorBase<DeleteAccountViewModel>
    {
        protected override void Validate()
        {
            PassIf.True(Value.Confirmation, "Please confirm that you want to delete your account!");
        }
    }
}
